<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>non-porps属性</title>
    <script src="../vue.global.js"></script>
</head>
<body>
<div id="app"></div>
<script>
    /**
     *  No-props
     */
    const app = Vue.createApp({
        data() {
            return {

            }
        },
        methods: {},
        template: `
          <div><Counter msg="hello"/></div>
        `
    });
    app.component('Counter',{
        // inheritAttrs:false,
        mounted(){
            console.log(this.$attrs.msg)
        },
        template: `
            <div :title="this.$attrs.msg">Counter</div>
            <div v-bind:title="$attrs.msg">Counter</div>
            <div>Counter</div>
        `
    })
    const vm = app.mount("#app");
</script>
</body>
</html>